package com.cloud.product.service.impl;


import com.alibaba.nacos.common.utils.ThreadUtils;
import com.cloud.product.service.ProductService;
import model.bean.Product;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

/**
 * @author 韩先楚
 */
@Service
public class ProductServiceimpl implements ProductService {
    @Override
    public Product getProductById(Long id) {
        Product product = new Product();
        product.setId(id);
        product.setNum(12);
        product.setName("云计算");
        product.setPrice(BigDecimal.valueOf(10000));

      return product;
    }
}
